package shootingtactics.client.game;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiBinderUtil;
import com.google.gwt.user.client.ui.Widget;

public class GameTop_GameTopUiBinderImpl implements UiBinder<com.google.gwt.user.client.ui.Widget, shootingtactics.client.game.GameTop>, shootingtactics.client.game.GameTop.GameTopUiBinder {

  public com.google.gwt.user.client.ui.Widget createAndBindUi(final shootingtactics.client.game.GameTop owner) {

    shootingtactics.client.game.GameTop_GameTopUiBinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (shootingtactics.client.game.GameTop_GameTopUiBinderImpl_GenBundle) GWT.create(shootingtactics.client.game.GameTop_GameTopUiBinderImpl_GenBundle.class);
    shootingtactics.client.game.GameTop_GameTopUiBinderImpl_GenCss_style style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style();
    java.lang.String domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.HTML errorMessage = (com.google.gwt.user.client.ui.HTML) GWT.create(com.google.gwt.user.client.ui.HTML.class);
    java.lang.String domId1 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.HTML infoMessage = (com.google.gwt.user.client.ui.HTML) GWT.create(com.google.gwt.user.client.ui.HTML.class);
    java.lang.String domId2 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.SimplePanel canvasPanel = (com.google.gwt.user.client.ui.SimplePanel) GWT.create(com.google.gwt.user.client.ui.SimplePanel.class);
    java.lang.String domId3 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.Button startButton = (com.google.gwt.user.client.ui.Button) GWT.create(com.google.gwt.user.client.ui.Button.class);
    java.lang.String domId4 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.Button stopButton = (com.google.gwt.user.client.ui.Button) GWT.create(com.google.gwt.user.client.ui.Button.class);
    java.lang.String domId5 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.Button resetButton = (com.google.gwt.user.client.ui.Button) GWT.create(com.google.gwt.user.client.ui.Button.class);
    com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new com.google.gwt.user.client.ui.HTMLPanel("<span id='" + domId0 + "'></span> <span id='" + domId1 + "'></span> <span id='" + domId2 + "'></span> <span id='" + domId3 + "'></span> <span id='" + domId4 + "'></span> <span id='" + domId5 + "'></span>");

    errorMessage.setStyleName("errorMessage");
    infoMessage.setStyleName("infoMessage");
    canvasPanel.setHeight("600px");
    canvasPanel.setWidth("800px");
    startButton.setHTML("Start");
    stopButton.setHTML("Stop");
    resetButton.setHTML("Reset");
    f_HTMLPanel1.setStyleName("margin");

    UiBinderUtil.TempAttachment attachRecord0 = UiBinderUtil.attachToDom(f_HTMLPanel1.getElement());
    com.google.gwt.user.client.Element domId0Element = com.google.gwt.dom.client.Document.get().getElementById(domId0).cast();
    com.google.gwt.user.client.Element domId1Element = com.google.gwt.dom.client.Document.get().getElementById(domId1).cast();
    com.google.gwt.user.client.Element domId2Element = com.google.gwt.dom.client.Document.get().getElementById(domId2).cast();
    com.google.gwt.user.client.Element domId3Element = com.google.gwt.dom.client.Document.get().getElementById(domId3).cast();
    com.google.gwt.user.client.Element domId4Element = com.google.gwt.dom.client.Document.get().getElementById(domId4).cast();
    com.google.gwt.user.client.Element domId5Element = com.google.gwt.dom.client.Document.get().getElementById(domId5).cast();
    attachRecord0.detach();
    f_HTMLPanel1.addAndReplaceElement(errorMessage, domId0Element);
    f_HTMLPanel1.addAndReplaceElement(infoMessage, domId1Element);
    f_HTMLPanel1.addAndReplaceElement(canvasPanel, domId2Element);
    f_HTMLPanel1.addAndReplaceElement(startButton, domId3Element);
    f_HTMLPanel1.addAndReplaceElement(stopButton, domId4Element);
    f_HTMLPanel1.addAndReplaceElement(resetButton, domId5Element);


    owner.canvasPanel = canvasPanel;
    owner.errorMessage = errorMessage;
    owner.infoMessage = infoMessage;
    owner.resetButton = resetButton;
    owner.startButton = startButton;
    owner.stopButton = stopButton;
    clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style().ensureInjected();

    return f_HTMLPanel1;
  }
}
